package com.walming.generator.copycat.mybatisplus.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.walming.generator.copycat.mybatisplus.injector.method.PhysicalDelete;
import com.walming.generator.copycat.mybatisplus.injector.method.PhysicalDeleteBatchByIds;
import com.walming.generator.copycat.mybatisplus.injector.method.PhysicalDeleteById;

import java.util.List;

/**
 * <p>
 * 物理删除增强SQL注入器
 * </p>
 *
 * @author walming
 * @date 2021-03-09 10:19
 */
public class PhysicalDeleteEnhance extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass);
        methodList.add(new PhysicalDelete());
        methodList.add(new PhysicalDeleteById());
        methodList.add(new PhysicalDeleteBatchByIds());
        return methodList;
    }

}
